﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class follow : MonoBehaviour
{
    // 人物对象
    private GameObject blueQ;
    // Start is called before the first frame update
    void Start()
    {
        blueQ = GameObject.Find("blueQuilt");
        gameObject.transform.position = new Vector3(blueQ.transform.position.x,blueQ.transform.position.y,-20);
    }

    // Update is called once per frame
    void Update()
    {
        gameObject.transform.position = new Vector3(blueQ.transform.position.x,blueQ.transform.position.y,-20);
    }
}
